import request from '@/src/basic/utils/request.js'

export const login = async params => {
  const { data } = await request.get('/auth/login/1', params)
  return data
}

export const getCode = async phone => {
  const params = {
    phone: phone,
    loginType: 1
  }
  const { data } = await request.get('/basic/sms/send/free/vericode', params)
  return data
}
export const rePasswordLogin = async param => {
  const params = {
    ...param,
    loginType: 1
  }
  const { data } = await request.get('/merchant/life-circle/rePasswordLogin/1', params)
  return data
}
